﻿using System;
using System.Device.Location;
using Microsoft.WindowsAzure.MobileServices;
using SkiTracker.Converter;

namespace SkiTracker.Model
{
    [DataTable(Name = "Positions")]
    public class Position
    {
        public int Id { get; set; }

        public int DeviceId { get; set; }

        [DataMemberJsonConverter(ConverterType = typeof(GeoCoordinateJsonConverter))]
        public GeoCoordinate Coordinate { get; set; }

        public DateTime CreatedAt { get; set; }

    }
}
